<?php
/**
 * System_Model_Task
 *
 * @author maomao.thx@gmail.com
 * @copyright Copyright (c) 2009 Green Shore (http://www.iwgame.com)
 * @version $Id: Task.php 445 2011-04-25 06:14:40Z maomao.thx@gmail.com $
 */
class System_Model_Task extends IG_Model
{

    protected $_taskId = null;

    protected $_type = null;

    protected $_i1 = null;

    protected $_i2 = null;

    protected $_i3 = null;

    protected $_i4 = null;

    protected $_str1 = null;

    protected $_str2 = null;

    protected $_str3 = null;

    protected $_status = null;

    public function getTaskId()
    {
        return $this->_taskId;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setTaskId($taskId)
    {
        $this->_taskId = $taskId;
        return $this;
    }

    public function getType()
    {
        return $this->_type;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setType($type)
    {
        $this->_type = $type;
        return $this;
    }

    public function getI1()
    {
        return $this->_i1;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setI1($i1)
    {
        $this->_i1 = $i1;
        return $this;
    }

    public function getI2()
    {
        return $this->_i2;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setI2($i2)
    {
        $this->_i2 = $i2;
        return $this;
    }

    public function getI3()
    {
        return $this->_i3;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setI4($i4)
    {
        $this->_i4 = $i4;
        return $this;
    }

    public function getI4()
    {
        return $this->_i4;
    }
    /**
     * @param string
     * @return System_Model_Task
     */
    public function setI3($i3)
    {
        $this->_i3 = $i3;
        return $this;
    }

    public function getStr1()
    {
        return $this->_str1;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setStr1($str1)
    {
        $this->_str1 = $str1;
        return $this;
    }

    public function getStr2()
    {
        return $this->_str2;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setStr2($str2)
    {
        $this->_str2 = $str2;
        return $this;
    }

    public function getStr3()
    {
        return $this->_str3;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setStr3($str3)
    {
        $this->_str3 = $str3;
        return $this;
    }

    public function getStatus()
    {
        return $this->_status;
    }

    /**
     * @param string
     * @return System_Model_Task
     */
    public function setStatus($status)
    {
        $this->_status = $status;
        return $this;
    }

    public function updateStatus($id, $status, $type = 1)
    {
        $this->getMapper()->updateStatus($id, $status, $type);
    }
}

